package gui.initiatives;

import gui.EarthPanel;
import gui.Presentation;
import simulation.initiatives.EnginePush;
import common.SimulationSettings;

public class ClockControlPush extends AbstractClockControl {
  private static final long serialVersionUID = -5822023983023271362L;

  private EnginePush engine;
    
  public ClockControlPush(EarthPanel pnlEarth, SimulationSettings settings) {
    super(settings);
    Presentation presentation = new Presentation(pnlEarth, pnlDateTime);
    engine = new EnginePush(presentation, settings);  
  }
  
  public void adjustDisplayRate(int newRate) {
    engine.adjustDisplayRate(newRate);
  }
  
  public void startClock() {
    engine.start();      
  }
  
  public void pauseClock() {
    engine.pause();
  }

  public void resetClock() {
    engine.reset();
  }      
}
